 <ion-view title="{{vm.dynamic.title}}" hide-nav-bar="true">
     <ion-content class="has-footer" scroll="false" overflow-scroll="true">
         <ion-scroll direction="y" on-scroll="scrollFun()" delegate-handle="pageScroll" style="width: 100%;height: 100%;position: fixed;">
             <div>
                 <div class="container">
                     <div class="list card padding" style="margin: 0px;">
                         <div class="item item-avatar">
                             <img ng-src="{{vm.dynamic.memberAvatarPath}}">
                             <h2>{{vm.dynamic.studentName}}&nbsp;{{vm.dynamic.memberParentGender}}</h2>
                             <p>发表于&nbsp;{{vm.dynamic.createDate | date:'yyyy-MM-dd HH:mm'}}</p>
                         </div>
                         <br>
                         <p style="font-size: 1.2rem;">{{vm.dynamic.title}}</p>
                         <div class="item item-body dynamic-content" style="padding: 0px;border: 0px;" ng-bind-html="vm.dynamic.content"></div>
                         <p>&nbsp;</p>
                         <p style="font-size: 1.2rem;color: #B1B1B1;">精彩评论&nbsp;&nbsp;<span style="font-size: 1rem;">共{{vm.dynamic.comments}}条评论</span></p>
                     </div>
                     <div id="commentBox" class="list" style="margin: 0px;">
                         <div class="item item-avatar" ng-repeat="item in vm.exhortaions track by $index">
                             <img ng-src="{{item.memberAvatarPath}}">
                             <div class="dynamic-comment-info-div">
                                 <h2 style="float: left;">{{item.memberName}}</h2>
                                 <p ng-click="replyComment(item.id,item.memberId,item.memberName,item.parentCommentId,$event)"><i class="ion ion-chatbox-working"></i>回复</p>
                                 <p ng-click="likeComment(item)" ng-class="{true:'hadLikes'}[item.hadLikes === '1']"><i class="fa fa-thumbs-o-up"></i>{{item.likes}}</p>
                             </div>
                             <p style="font-size: 0.8rem;margin: 2px 0px;color: #BFBFBF;">{{item.createDate|timeAgo}}</p>
                             <p class="comment-p" style="white-space: normal;font-size: 1.0rem;margin: 10px 0px;" ng-text-truncate="item.comment" ng-tt-chars-threshold="100" ng-tt-more-label="查看更多" ng-tt-less-label="收起"></p>
                             <div style="width: 100%;background: #E6E6E6;color: #ccc;" ng-show="item.reply > 0">
                                 <p style="padding: 5px;" ui-sref="dynamic.commentInfo({commentId:item.id,dynamicId:vm.dynamic.id})">查看全部{{item.reply}}条回复<i class="ion ion-ios-arrow-forward" style="padding: 5px;"></i></p>
                             </div>
                             <div style="height: 20px;width: 100%;">
                                 <a ng-show="{{item.memberId === vm.loginAccount.memberId || vm.loginAccount.memberType === '1'}}" href="javascript:;" style="float: right;" ng-click="deleteComment(item.id,$index)">删除</a>
                             </div>
                         </div>
                         <div class="load-more-btn" style="text-align: center;" ng-show="vm.loadMoreBtnStatus == false">
                             <p class="no-data-p">下面没有更多的评论了</p>
                         </div>
                         <ion-infinite-scroll immediate-check="false" on-infinite="loadMoreComment()" distance="20%" ng-show="vm.loadMoreBtnStatus"></ion-infinite-scroll>
                     </div>
                </div>
             </div>
             <div style="height: 44px;width: 100%;">&nbsp;</div>
         </ion-scroll>
         <div class="dynamic-footer">
             <input class="comment-input" type="button" value="点击添加评论....." id="showCommentsBtn"/>
             <button class="dynamic-footer-btn" id="showToast" style="width: 40%;right: 0px;top: 0px;">
                 <i class="ion" ng-class="{true: 'ion-ios-heart',false: 'ion-ios-heart-outline'}[vm.dynamic.hadLikes]"></i>
             </button>
         </div>
     </ion-content>
     <div id="dynamic-comment-box" style="display: none;">
         <div class="textarea-box">
             <p ng-class="{true: 'ng-hide'}[vm.toReply == null]">回复：{{vm.toReply.name}}</p>
             <textarea class="dynamic-comment-textarea" ng-model="vm.comment"></textarea>
             <button ng-click="commitComment()">发表</button>
         </div>
         <div class="weui-mask"></div>
     </div>
     <div id="toast" style="display: none;">
         <div class="weui-mask_transparent"></div>
         <div class="weui-toast">
             <p class="weui-toast__content" style="line-height: 100px; margin: 0px;">{{vm.hadLikesStr}}</p>
         </div>
     </div>
</ion-view>